package router

import (
	"Founction/controller"
	"github.com/gin-gonic/gin"
)

func RankRouter(Router *gin.RouterGroup) {
	rankRouter := Router.Group("rank")
	{
		// 获取排行榜
		rankRouter.GET("getRankList", controller.GetRanking)
		// 设置排行榜
		rankRouter.POST("setRank", controller.UpdateScoreAndSync)
	}
}
